home *** CD-ROM | disk | FTP | other *** search
- Path: cnn.Princeton.EDU!usenet
- From: joeross@princeton.edu (Joe Ross)
- Newsgroups: comp.lang.c++,gnu.g++.help
- Subject: Re: DONT UNDERSTAND - array of char error
- Date: 2 Mar 1996 21:51:23 GMT
- Organization: Princeton University
- Message-ID: <4hafsr$dbc@cnn.Princeton.EDU>
- References: <4habvu$99j@panix.com>
- NNTP-Posting-Host: joeross.student.princeton.edu
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- >I have built a class called Param for passing labels and
- >parameters around. I want to store the labels and parameters
- >in an array of strings. To this end, I had the following
- >declaration in my header file:
- >
- > char *labels[];
- > char *params[];
- >
- > param.h:21: field `labels' has incomplete type
-
- i think you have to specify how big you want the array to be:
- char *labels[SIZE_OF_ARRAY];
-
-
-